package com.xxx.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author blijojo
 * @date 2021/5/20
 */
@RestController
@Slf4j
public class OrderController {

    @Value("${server.port}")
    private int port;

    @GetMapping("order")
    public String demo() {
        log.info("调用order服务,端口:{}", port);
        return "order服务,端口:" + port;
    }

}
